@extends('linfeng.home.person')
@section('title','修改密码')
@section('first-person')
    <div class="member-security">
        <div class="member-title">
            <h2>修改密码</h2>
        </div>
        <div class="member-mod">
            <div class="member-mod">
                <form action="{{url('home/Person/newpwd')}}" method="post">
                    {{csrf_field()}}
                    <ul>
                        <li class="ps_edit">
                            <span class="bianu"></span>
                            <label for="" class="form-label">旧密码:</label>
                            <span class="form-act">
                                <input type="password" name="pwd" class="x-input">
                            </span>
                        </li>
                        <li class="ps_edit">
                            <span class="bianu"></span>
                            <label for="" class="form-label">新密码:</label>
                            <span class="form-act">
                                <input  type="password" name="newpassword" class="x-input">
                            </span>
                        </li>
                        <li class="ps_edit">
                            <span class="bianu"></span>
                            <label for="" class="form-label">确认密码:</label>
                            <span class="form-act">
                                <input type="password" name="newpassword_old" class="x-input">
                            </span>
                        </li>
                        @if(!empty(session('success')))
                            <script>alert('俩次密码不一致')</script>
                        @endif
                        @if(!empty(session('succass')))
                            <script>alert('旧密码不正确')</script>
                        @endif
                        <input style="margin-left:125px;" type="submit" class="bind_bow btn btn-default" data-toggle="modal" data-target="#myModal" value="立即绑定">
                    </ul>
                </form>
            </div>
        </div>
    </div>
@endsection
